home *** CD-ROM | disk | FTP | other *** search
- Path: news.ios.com!usenet
- From: Joshua Hoffman <jhoffman@questtech.com>
- Newsgroups: comp.lang.c++
- Subject: VC++: help with default button
- Date: Tue, 16 Jan 1996 14:54:17 -0500
- Organization: Internet Online Services
- Message-ID: <30FC0269.41C67EA6@questtech.com>
- NNTP-Posting-Host: defiant.questtech.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 4.1.3 sun4c)
- CC: jhoffman@questtech.com
-
- In a modeless dialog box I want to dynamically change the default
- button. I tried using
-
- btn1->SetButtonStyle(BS_DEFPUSHBUTTON);
-
- which did draw the heavy border around the button. But when I press the
- "Enter" key from an edit control or listbox control within the dialog
- box the button is not "pressed".
-
- What am I doing wrong.
-
- Using MS Visual C++ 4.0 with MFC 4.0 under Window NT 3.51 Serive Pack 2
-